/*
 * Created on Mar 3, 2010
 */
package com.mgmaps.tools;

public class GeoTools {

  public static final double METERS_PER_MILE = 1609.344;
  public final static double METERS_PER_HOUR_PER_KNOT = 1852.00;
  
  public static final int NAN = -1000000000;

  private GeoTools() {
  }

  public static double metersToMiles(double distanceInMeters) {
    return distanceInMeters/METERS_PER_MILE;
  }

  public static double milesToMeters(double distanceInMiles) {
    return distanceInMiles*METERS_PER_MILE;
  }
}
